package com.lostsheep.service.feign;

import com.lostsheep.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <b><code>UserService</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2024/8/25.
 *
 * @author dengzhen
 * @since spring-cloud-dubbo
 */
@FeignClient(name = "dubbo-provider")
public interface FeignUserService {

    @GetMapping("/user/{userId}")
    UserVO getUser(@PathVariable("userId") Long userId);
    
    @GetMapping("/user/list")
    List<UserVO> listUsers();
}
